package com.rayc.service.impl;

import com.codingapi.txlcn.tc.annotation.LcnTransaction;
import com.rayc.mapper.ItemMapper;
import com.rayc.service.ItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class ItemServiceImpl implements ItemService {
    @Autowired
    private ItemMapper itemMapper;
    @Override
    @Transactional
    @LcnTransaction
    public void update() {
        //1、减库存
        itemMapper.update();
    }
}
